using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.ItemMasters
{
    public interface IItemMasterAppService
    {
        Task<ItemMasterDto> GetAsync(Guid id);
        Task<ItemMasterDto> FindAsync(string filter);
        Task<ItemMasterDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<ItemMasterDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<ItemMasterDto>> QueryAsync(FilterGroupRequestDto input);
        Task<ItemMasterDto> CreateAsync(ItemMasterCreateDto input);
        Task<ItemMasterDto> UpdateAsync(Guid id, ItemMasterUpdateDto input);
        Task DeleteAsync(Guid id);
    }
}